DX11 GET BUFFER DWORD

Returns the dword (unsigned integer, uint in HLSL) value stored at the specified position in the given buffer.
The three-argument version is only used by structured buffers; array- and byte address buffers will ignore the offsetInElement argument.

  Syntax
Return Dword = DX11 GET BUFFER DWORD(buffer, offset, [offsetInElement])
  Parameters
buffer
Dword
The buffer to read the dword value from.
offset
Dword
The offset within the buffer to read the value from. If called for a structured buffer or an array buffer, this corresponds to the element id to get. For a byte address buffer it is the offset in bytes from the beginning of the buffer. Note that byte address buffers can only be read from at 4-byte aligned addresses by the GPU.
[Optional] offsetInElement
Dword
The offset within the current struct of the given element. Only relevant for structured buffers to allow writing struct entries with multiple data types. Ignored for all other buffer types.

  Returns

The dword (unsigned integer) value stored at the given offset in the buffer.

  See also

DIRECTCOMPUTE Functions Menu
DX11 Function Categories